(fill-delete-newlines): Don't add a space if a
authorKenichi Handa <handa@m17n.org>
Tue, 27 Jan 2004 07:34:18 +0000 (07:34 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 27 Jan 2004 07:34:18 +0000 (07:34 +0000)
setence ends with one of a character in
sentence-end-without-space.

lisp/textmodes/fill.el

index 69b17f677ff7e7564b3d56ee74332a5d0bc2fc57..5aded4a85e8663043c3454c2a1184b781f64b19b 100644 (file)
@@ -423,9 +423,13 @@ Point is moved to just past the fill prefix on the first line."
          ((string-match "\\[[^][]*\\(\\.\\)[^][]*\\]" sentence-end)
           (concat (replace-match ".:" nil nil sentence-end 1) "$"))
          ;; Can't find the right spot to insert the colon.
-         (t "[.?!:][])}\"']*$"))))
+         (t "[.?!:][])}\"']*$")))
+       (sentence-end-without-space-list
+        (string-to-list sentence-end-without-space)))
     (while (re-search-forward eol-double-space-re to t)
       (or (>= (point) to) (memq (char-before) '(?\t ?\ ))
+         (memq (char-after (match-beginning 0)) 
+               sentence-end-without-space-list)
          (insert-and-inherit ?\ ))))
 
   (goto-char from)